import 'package:flutter/material.dart';

class AppTheme {
  // 深蓝色和青色主题色彩
  static const Color primaryDarkBlue = Color(0xFF0A0E27);
  static const Color secondaryDarkBlue = Color(0xFF1A1F3A);
  static const Color accentCyan = Color(0xFF00FFFF);
  static const Color lightCyan = Color(0xFF00E5E5);
  static const Color white = Color(0xFFFFFFFF);
  static const Color transparentBlue = Color(0x800A0E27);
  static const Color cardBackground = Color(0x800A0E27);

  static ThemeData get darkTheme {
    return ThemeData(
      brightness: Brightness.dark,
      primaryColor: accentCyan,
      scaffoldBackgroundColor: primaryDarkBlue,
      colorScheme: const ColorScheme.dark(
        primary: accentCyan,
        secondary: lightCyan,
        surface: secondaryDarkBlue,
        onPrimary: primaryDarkBlue,
        onSecondary: primaryDarkBlue,
        onSurface: white,
      ),
      appBarTheme: const AppBarTheme(
        backgroundColor: Colors.transparent,
        elevation: 0,
        iconTheme: IconThemeData(color: white),
        titleTextStyle: TextStyle(
          color: white,
          fontSize: 18,
          fontWeight: FontWeight.w600,
        ),
      ),
      textTheme: const TextTheme(
        headlineLarge: TextStyle(
          color: white,
          fontSize: 24,
          fontWeight: FontWeight.bold,
        ),
        headlineMedium: TextStyle(
          color: white,
          fontSize: 20,
          fontWeight: FontWeight.w600,
        ),
        headlineSmall: TextStyle(
          color: white,
          fontSize: 18,
          fontWeight: FontWeight.w500,
        ),
        bodyLarge: TextStyle(
          color: white,
          fontSize: 16,
          fontWeight: FontWeight.normal,
        ),
        bodyMedium: TextStyle(
          color: white,
          fontSize: 14,
          fontWeight: FontWeight.normal,
        ),
        bodySmall: TextStyle(
          color: white,
          fontSize: 12,
          fontWeight: FontWeight.normal,
        ),
        labelLarge: TextStyle(
          color: white,
          fontSize: 16,
          fontWeight: FontWeight.w600,
        ),
        labelMedium: TextStyle(
          color: white,
          fontSize: 14,
          fontWeight: FontWeight.w500,
        ),
        labelSmall: TextStyle(
          color: white,
          fontSize: 12,
          fontWeight: FontWeight.w500,
        ),
      ),
      elevatedButtonTheme: ElevatedButtonThemeData(
        style: ElevatedButton.styleFrom(
          backgroundColor: accentCyan,
          foregroundColor: primaryDarkBlue,
          elevation: 0,
          shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(8)),
          padding: const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
        ),
      ),
      // cardTheme: CardTheme(
      //   color: cardBackground,
      //   elevation: 0,
      //   shape: RoundedRectangleBorder(
      //     borderRadius: BorderRadius.circular(12),
      //     side: const BorderSide(color: accentCyan, width: 1),
      //   ),
      // ),
    );
  }
}
